<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <script src="/static/jQuery-3.3.1.js"></script>
    <title>Title</title>
</head>
<body>

<form action="{% url 'upload_file' %}" enctype="multipart/form-data" method="post">
    <input type="file" name="myfile" id="myfile">
    <input type="submit" value="提交">
</form>

</body>
</html>